public class InterfaceDemo08 {
    public static void main(String[] args) {
        P p = new Dog();
        p.kill();
        System.out.println(P.K);// 访问常量
    }
}


interface L {
    void b();
}

interface M {
    void a();
}

interface P extends M, L {
    int K = 10;// 常量一般大写

    void kill();
}

class Dog implements P {


    @Override
    public void b() {
        System.out.println("b");
    }

    @Override
    public void a() {
        System.out.println("a");
    }

    @Override
    public void kill() {
        System.out.println("狗会飞");
    }
}


